package com.kate.mall.bff.wx.feign;

import com.kate.mall.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @Description: 用一句话描述
 * @Auther: 新梦想*陈超
 * @Date: 2021/8/17 23:16
 */
@FeignClient(value = "coupon-center")
public interface CouponFeignClient {

    @GetMapping("/coupon/couponuser/list")
    R queryAll(@RequestParam("user_id") Integer userId);

    @GetMapping("/coupon/coupon/verify")
    R checkCoupon(@RequestParam("user_id") Integer userId, @RequestParam("coupon_id")Integer couponId, @RequestParam("user_coupon_id")Integer tmpUserCouponId, @RequestParam("checked_goods_price")BigDecimal checkedGoodsPrice);

    @GetMapping("/coupon/coupon/list")
    R selectCouponList(@RequestParam(required = false) Map<String, Object> params);

}
